package com.itcast.common.utils;

import freemarker.template.Configuration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.io.InputStream;

/**
 * @author itcast
 * @create 2024-09-18 16:56
 */
@Slf4j
@Component
public class FreeMarkerUtils {
    @Resource
    private Configuration configuration;

    /**
     * freemarker生成html文件
     *
     * @param templatePath 模版路径
     * @param model        填充数据
     * @return html文件输入流
     */
    public InputStream generateHtml(String templatePath, Object model) {
        return null;
    }

}
